FROM openjdk:8u181-jdk-alpine
ARG workdir=/usr/local
WORKDIR ${workdir}
VOLUME ${workdir}
ADD personal-lottery-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8888
#设置变量 JAVA_OPTS
ENV JAVA_OPTS=""
ENTRYPOINT java -jar ${JAVA_OPTS} -Duser.timezone=GMT+08 -Djava.security.egd=file:/dev/./urandom app.jar

#打包
#docker build -t fuminluo/personal-lottery:0.2.8 .
#启动命令
#docker run -d --network host --restart=always -v /tmp/logs:/tmp/logs --privileged=true -e JAVA_OPTS=' -Xms256m -Xmx1024m -XX:+UseG1GC ' -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone --name app5 fuminluo/personal-lottery:0.0.5